﻿
using System;
using System.Threading;
namespace ActiveDesktop
{
    public class Program
    {
        public static void Main(params string[] args)
        {
            Program program = new Program();
            Action action = program.Start;
            AutoResetEvent waitHandle = new AutoResetEvent(false);
            action.BeginInvoke(result => action.EndInvoke(result), null);
            waitHandle.WaitOne();
        }

        private void Start()
        {
            var timer = new System.Timers.Timer(10000);
            timer.Elapsed += this.OnTimerElapsed;
            timer.Start();
        }

        private void OnTimerElapsed(object sender, System.Timers.ElapsedEventArgs e)
        {
            MouseEvents.RaiseMouseMove();
        }
    }
}
